<?php


?>

<?php include $this->getLayoutFile('block_top_messages'); ?>

<div class="block">
    <a href="<?php echo $this->url->get('adminSiteClient','newDependant',$client); ?>" class="button1">建立眷屬</a>
</div>

<table class="table1" cellspacing="0">
    <tr> 
        <th class="nobg"> id </th> 
        <th> 眷屬姓名   </th> 
        <th> 電話       </th> 
        <th> 手機       </th> 
    </tr>
    <?php
        if($subClients) {
            foreach( $subClients as $subClient ) {
                echo '<tr>';
                echo '    <th>'. $subClient->getId() .'</td>';
                echo '    <td><a href="'. $this->url->get('adminSiteClient','editDependant',$subClient) .'">'. $subClient->getName() .'</a></td>';
                echo '    <td>'. $subClient->getTel() .'</td>';
                echo '    <td>'. $subClient->getPhone() .'</td>';
                echo '</tr>';
            }
        }
    ?>
</table> 

<?php  if( $this->pageLimit ) { echo '<div>'. $this->pageLimit->render() .'</div>'; }  ?>
